﻿using System;
using Matrix.MaKaYunShang.Model.Enum;

namespace Matrix.MaKaYunShang.Model.Dto
{
    public class ViewCloudCardsDto 
    {	
        public int Id { get; set; }
        /// <summary>
        /// 卡券名称
        /// </summary>		
        public string CardName { get; set; }
        /// <summary>
        /// 卡券状态
        /// </summary>		
        public int PassStatus { get; set; }
        /// <summary>
        /// 卡券状态（显示）
        /// </summary>		
        public string CardStatusText 
        {
            get { return ((CloudCardEnum.CloudCardsPassStatus)PassStatus).ToString(); }
        }
        /// <summary>
        /// 商家ID
        /// </summary>		
        public int ShopId { get; set; }
        /// <summary>
        /// 商家名称
        /// </summary>		
        public string ShopName { get; set; }
        /// <summary>
        /// 卡券类别ID
        /// </summary>
        public int CardCategoryId { get; set; }
        /// <summary>
        /// 卡券类别名称
        /// </summary>		
        public string CategoryName { get; set; }
        /// <summary>
        /// 卡券LOGO
        /// </summary>		
        public string LoGo { get; set; }
        /// <summary>
        /// 卡卷库存总数量
        /// </summary>		
        public int TotalQuantity { get; set; }
        /// <summary>
        /// 已发数量
        /// </summary>		
        public int SendQuantity { get; set; }
        /// <summary>
        /// 领取数量
        /// </summary>		
        public int ReceiveQuantity { get; set; }
        /// <summary>
        /// 生效时间
        /// </summary>		
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 失效时间
        /// </summary>		
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 卡卷价值
        /// </summary>		
        public decimal CardValue { get; set; }
        /// <summary>
        /// 卡卷是否可分享
        /// </summary>		
        public bool CanShare { get; set; }
        /// <summary>
        /// 描述
        /// </summary>		
        public string Description { get; set; }
        /// <summary>
        /// 使用说明
        /// </summary>		
        public string Instruction { get; set; }
        /// <summary>
        /// (最低消费可用)满减门槛字段，可用于折扣券和代金券，填入后将在前面拼写消费满xx元可用
        /// </summary>		
        public decimal LeastCost { get; set; }
        /// <summary>
        /// 代金券专用，表示减免金额。（单位为元）
        /// </summary>		
        public decimal ReduceCost { get; set; }
        /// <summary>
        /// 折扣券专用，表示打折额度（百分比）。填30就是七折。 
        /// </summary>		
        public decimal DiscountValue { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>		
        public DateTime AddTime { get; set; }
        /// <summary>
        /// 是否在主页显示
        /// </summary>
        public bool ShowOnHomepage { get; set; }
        /// <summary>
        /// 是否在主页显示
        /// </summary>
        public string ShowOnHomepageText 
        {
            get { return ShowOnHomepage ? "是" : "否"; } 
        }
        /// <summary>
        /// 操作
        /// </summary>
        public string Action { get; set; }
    }
}
